<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 随机猜数字游戏
        function getRandom(n, m) {
            let num = Math.floor(Math.random() * (m - n + 1)) + n
            let re = getRandom(1, 10)
            console.log(re);
            while (true) {
                let num = +prompt('请输入一个数组')

            }

        }


    </script>
</body>

</html>